﻿using Newtonsoft.Json;

namespace EasyNetQ.Management.Client.Model
{
    public class Policy
    {
        public string Vhost { get; set; }
        public string Name { get; set; }
        public string Pattern { get; set; }
        public PolicyDefinition Definition { get; set; }
        [JsonProperty("apply-to", NullValueHandling = NullValueHandling.Ignore)]
        public ApplyMode ApplyTo { get; set; }
        public int Priority { get; set; }
    }
}
